<link rel="stylesheet" href="{{ URL::asset('admin/css/adminleft.css') }}"/>
<!-- 左侧导航栏 -->
<div class="j_sideNav">
    <ul>
        <li class="active">
            <i><img src="{{ URL::asset('admin/images/cx.png') }}" alt=""></i>
            <a href="javascript:;">条件查询</a>
        </li>
        <li>
            <i><img src="{{ URL::asset('admin/images/kh.png') }}" alt=""></i>
            <a href="javascript:;">客户查询</a>
        </li>
        <li>
            <i><img src="{{ URL::asset('admin/images/dd.png') }}" alt=""></i>
            <a href="javascript:;">订单查询</a>
        </li>
        <li>
            <i><img src="{{ URL::asset('admin/images/cc.png') }}" alt=""></i>
            <a href="javascript:;">持仓查询</a>
        </li>
    </ul>
</div>
<script type="text/javascript" src="{{ URL::asset('public_js/jquery-1.8.3.min.js') }}"></script>
<script>
    $(function(){
        var tiaojiancx = "{{ url('/myadmin/') }}";           // 条件查询
        var kehucx     = "{{ url('/myadmin/customercx') }}"; //客户查询
        var dingdancx  = "{{ url('/myadmin/dingdancx') }}";  //订单查询
        var chicangcx  = "{{ url('/myadmin/chicangcx') }}";  //持仓查询
        $('.j_sideNav > ul > li').click(function(){
            var index = $(this).index();
            if(index == 0) {
                window.location.href = tiaojiancx;
            }else if(index == 1) {
                window.location.href = kehucx;
            }else if(index == 2) {
                window.location.href = dingdancx;
            }else if(index == 3) {
                window.location.href = chicangcx;
            }
        })
    })
</script>
